﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;


namespace ShevaEngine2GUI.DrawObjects
{
    /// <summary>
    /// Image rectangle.
    /// </summary>
    public class ImageRectangle
    {
        /// <summary>Position size.</summary>
        public Rectangle PositionSize;
        /// <summary>Image.</summary>
        public Texture Image;

        /// <summary>
        /// Constructor.
        /// </summary>
        public ImageRectangle(Texture image, Rectangle positionSize)
        {
            this.Image = image;
            this.PositionSize = positionSize;
        }

        /// <summary>
        /// Method Draw().
        /// </summary>
        public void Draw()
        {
            ShevaEngine.Core.ShevaEngine.Instance.SpriteBatch.Draw(this.Image as Texture2D, this.PositionSize, Color.White);
        }
    }
}
